﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPages/Admin.Master" AutoEventWireup="true"
    CodeBehind="CommentAdmin.aspx.cs" Inherits="_1041326_1041339_1041433.AdminPages.CommentAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <table style="width: 100%;" align="center">
                    <tr>
                        <td colspan="3">
                            <h1>
                                Quản lý bình luận</h1>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 37%;" class="label">
                            Tiêu đề
                        </td>
                        <td style="width: 2%;">
                        </td>
                        <td style="width: 60%;">
                            <asp:TextBox ID="txtTieuDe" runat="server" Width="40%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 37%;" class="label">
                            Người bình luận
                        </td>
                        <td style="width: 2%;">
                        </td>
                        <td style="width: 60%;">
                            <asp:TextBox ID="txtNguoiDung" runat="server" Width="40%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Nội dung
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNoiDung" runat="server" Width="40%" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Tình trạng
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbHoatDong" runat="server" Text="Hoạt động" Checked="True" GroupName="trash"
                                Font-Size="Medium" />
                            &nbsp;
                            <asp:RadioButton ID="rbKhongHoatDong" runat="server" Text="Không hoạt động" GroupName="trash"
                                Font-Size="Medium" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnThemMoi" runat="server" Text="Thêm mới" CssClass="button" />&nbsp;
                            <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" CssClass="button" />&nbsp;
                            <asp:Button ID="btnLamLai" runat="server" Text="Làm lại" CssClass="button" 
                                onclick="btnLamLai_Click" />&nbsp;
                            <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="button" 
                                onclick="btnHuy_Click"  />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        </td>
                        <td>
                            <asp:Label ID="lbThongBao" runat="server" Text="Label" Font-Bold="True" ForeColor="Red"
                                Font-Size="13px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                             <asp:GridView ID="gvComment" runat="server" BackColor="White" 
                                 BorderColor="#999999" BorderStyle="None"
                                BorderWidth="1px" CellPadding="3" AllowPaging="True" 
                                 AutoGenerateColumns="False" 
                                 onpageindexchanging="gvComment_PageIndexChanging" onselectedindexchanged="gvComment_SelectedIndexChanged" 
                                 
                               >
                                <AlternatingRowStyle BackColor="#DCDCDC" />
                                <Columns>
                                    <asp:BoundField DataField="MaBinhLuan" HeaderText="Mã tin">
                                    <HeaderStyle Height="25px" />
                                    <ItemStyle Height="25px" Width="35px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MaTin" HeaderText="Tiêu đề">
                                    <ItemStyle Width="200px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NguoiBinhLuan" HeaderText="Người dùng">
                                    <ItemStyle Width="150px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NoiDung" HeaderText="Nội dung">
                                    <ItemStyle Width="300px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TinhTrang" HeaderText="Tình trạng">
                                    <ItemStyle Width="80px" />
                                    </asp:BoundField>
                                    <asp:CommandField HeaderText="Chức năng" ShowSelectButton="True" 
                                        SelectText="Chọn">
                                    <ItemStyle Width="80px" />
                                    </asp:CommandField>
                                    <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" 
                                        HeaderText="Xóa/Phục hồi">
                                    <ItemStyle Width="80px" />
                                    </asp:CommandField>
                                </Columns>
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                <SortedAscendingHeaderStyle BackColor="#0000A9" />
                                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                <SortedDescendingHeaderStyle BackColor="#000065" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
